﻿using System;
using TestMonkey;
using TestMonkey.Templates;
using TestMonkey.TestRunners;

namespace Test_Driver
{
	class Program
	{

		static void Main(string[] args)
		{
			var setup = new Setup(
				@"C:\Source\Paranoia RPG\MAIN\ParanoiaECS for WPF\AoA.ParanoiaECS.Models\AoA.ParanoiaECS.Models.csproj",
				@"C:\Source\Paranoia RPG\MAIN\ParanoiaECS for WPF\AoA.ParanoiaECS.Models\bin\Debug\AoA.ParanoiaECS.Models.dll",
				@"C:\Source\Paranoia RPG\MAIN\ParanoiaECS for WPF\AoA.ParanoiaECS.ModelsTests\AoA.ParanoiaECS.ModelsTests.csproj");

			setup.SearchPaths.Add(@"C:\Windows\Microsoft.NET\Framework64\v4.0.30319");

			setup.TestRunner = new MSTest();
			setup.SkipTemplateOnError = true;

			var builder = new TestBuilder();
			AddTemplates(builder);

			builder.Run(setup);


			Console.WriteLine("Done");
			Console.ReadLine();

			//TestOne();
			//TestAjaxControlToolkit();
			//AllTests();

		}

		static void AddTemplates(TestBuilder builder)
		{
			builder.Templates.Add(new Custom());
			builder.Templates.Add(new BindingList());
			builder.Templates.Add(new PropertyReadTwice());
			builder.Templates.Add(new Cloneable());
			builder.Templates.Add(new Comparable());
			builder.Templates.Add(new Comparable1());
			builder.Templates.Add(new Constructor());
			builder.Templates.Add(new Disposable());
			builder.Templates.Add(new EditableObject());
			builder.Templates.Add(new PropertySelfAssign());
			builder.Templates.Add(new PropertyAssign());
			builder.Templates.Add(new NotifyPropertyChanged());
			builder.Templates.Add(new ListT());
			builder.Templates.Add(new ListTMemory());
			builder.Templates.Add(new Memory());
			builder.Templates.Add(new Helper());
			builder.Templates.Add(new Methods());

		}

	}

}



